package com.xdtech.game.service;

import java.util.List;
import java.util.Map;

import com.xdtech.common.service.IBaseService;
import com.xdtech.game.model.Rank;
import com.xdtech.game.vo.RankItem;

/**
 * 
 * @author max.zheng
 * @create 2015-03-16 23:17:03
 * @since 1.0
 * @see
 */
public interface RankService extends IBaseService<Rank>{

	/**
	 * 保存更新信息
	 * @author max.zheng
	 * @create 2015-03-16 23:17:03
	 * @modified by
	 * @param item
	 * @return
	 */
	boolean saveOrUpdateRank(RankItem item);

	/**
	 * 加载记录信息
	 * @author max.zheng
	 * @create 2015-03-16 23:17:03
	 * @modified by
	 * @param newId
	 * @return
	 */
	RankItem loadRankItem(Long rankId);

	/**
	 * 根据id号删除记录信�?
	 * @author max.zheng
	 * @create 2015-03-16 23:17:03
	 * @modified by
	 * @param id
	 * @return
	 */
	boolean deleteRankInfo(long id);

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-03-16 23:17:03
	 * @modified by
	 * @param rankIds
	 */
	boolean deleteRankInfo(List<Long> rankIds);

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-3-16下午11:18:12
	 * @modified by
	 * @param gameCode
	 * @param topNum
	 * @return
	 */
	Map<String, Object> loadTopRank(String gameCode, int topNum);

	/**
	 * 
	 * @author max.zheng
	 * @create 2015-5-13下午11:06:38
	 * @modified by
	 * @param item
	 * @return
	 */
	int getSort(RankItem item);
}
